package com.ruoyi.interfaced.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.interfaced.mapper.ShopPropertyMapper;
import com.ruoyi.interfaced.domain.ShopProperty;
import com.ruoyi.interfaced.service.IShopPropertyService;

/**
 * 商品属性，甜度，温度等Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
@Service
public class ShopPropertyServiceImpl implements IShopPropertyService 
{
    @Autowired
    private ShopPropertyMapper shopPropertyMapper;

    /**
     * 查询商品属性，甜度，温度等
     * 
     * @param id 商品属性，甜度，温度等主键
     * @return 商品属性，甜度，温度等
     */
    @Override
    public ShopProperty selectShopPropertyById(Integer id)
    {
        return shopPropertyMapper.selectShopPropertyById(id);
    }

    /**
     * 查询商品属性，甜度，温度等列表
     * 
     * @param shopProperty 商品属性，甜度，温度等
     * @return 商品属性，甜度，温度等
     */
    @Override
    public List<ShopProperty> selectShopPropertyList(ShopProperty shopProperty)
    {
        return shopPropertyMapper.selectShopPropertyList(shopProperty);
    }

    /**
     * 新增商品属性，甜度，温度等
     * 
     * @param shopProperty 商品属性，甜度，温度等
     * @return 结果
     */
    @Override
    public int insertShopProperty(ShopProperty shopProperty)
    {
        return shopPropertyMapper.insertShopProperty(shopProperty);
    }

    /**
     * 修改商品属性，甜度，温度等
     * 
     * @param shopProperty 商品属性，甜度，温度等
     * @return 结果
     */
    @Override
    public int updateShopProperty(ShopProperty shopProperty)
    {
        return shopPropertyMapper.updateShopProperty(shopProperty);
    }

    /**
     * 批量删除商品属性，甜度，温度等
     * 
     * @param ids 需要删除的商品属性，甜度，温度等主键
     * @return 结果
     */
    @Override
    public int deleteShopPropertyByIds(Integer[] ids)
    {
        return shopPropertyMapper.deleteShopPropertyByIds(ids);
    }

    /**
     * 删除商品属性，甜度，温度等信息
     * 
     * @param id 商品属性，甜度，温度等主键
     * @return 结果
     */
    @Override
    public int deleteShopPropertyById(Integer id)
    {
        return shopPropertyMapper.deleteShopPropertyById(id);
    }
}
